package com.baidu.mapper;

import com.baidu.pojo.Permission;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {
	Set<Permission> findPermissionByRid(Integer roleId);
	public List<Permission> findPermission();
	public Integer[] findPermissionByRoleId(Integer id);

	Page<Permission> pageQuerybyCondition(String queryString);

	void add(Permission permission);

	int findRoleByPermissionID(Integer id);

	void delete(Integer id);

	int findKeyWord(String keyword);

	Permission findById(Integer id);

	void edit(Permission permission);

}
